package com.deloitte.sapnetweaver.business
{
	import com.deloitte.sapnetweaver.vo.DocumentDetailVO;
	import com.deloitte.sapnetweaver.vo.DocumentSearchVO;
	
	import mx.rpc.IResponder;
	
	public class DocumentDetailsDelegate extends BaseDelegate
	{
		public function DocumentDetailsDelegate(responder:IResponder)
		{
			super(responder);
			super.remoteService = serviceLocator.getRemoteObject("documentDetailsRO");
		}
		
		public function saveOrUpdate(documentDetailVO:DocumentDetailVO):void{
			super.token = remoteService.saveOrUpdate(documentDetailVO);
			super.token.addResponder(super.responder);
		}
		
		public function deleteDocumentDetails(documentDetailVO:DocumentDetailVO):void{
			super.token = remoteService.deleteDocumentDetails(documentDetailVO);
			super.token.addResponder(super.responder);
		}
		public function findAllDocumentDetails():void{
			super.token = remoteService.findAllDocumentDetails();
			super.token.addResponder(super.responder);
		}
		public function findDocumentsForProjectScope():void{
			super.token = remoteService.findDocumentsForProjectScope();
			super.token.addResponder(super.responder);
		}
		
		public function findDocumentsForDocumentSearchVO(documentSearchVO:DocumentSearchVO):void{
			super.token = remoteService.findDocumentsForDocumentSearchVO(documentSearchVO);
			super.token.addResponder(super.responder);
		}
		
		public function searchDocuments(documentSearchVO:DocumentSearchVO=null):void{
			super.token = remoteService.findDocumentsForDocumentSearchVO(documentSearchVO);
			super.token.addResponder(super.responder);
		}
		
		public function findDocumentsForPointOfView():void{
			super.token = remoteService.findDocumentsForPointOfView();
			super.token.addResponder(super.responder);
		}
		
	}
}